package com.lyl.serviceedu.service;

import com.lyl.serviceedu.entity.Chapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyl.serviceedu.entity.vo.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author 雷艳玲
 * @since 2022-06-14
 */
public interface ChapterService extends IService<Chapter> {
    //课程大纲列表,根据课程id进行查询
    List<ChapterVo> getChapterVideoByCourseId(Long courseId);

    //删除章节的方法
    boolean deleteChapter(Long chapterId);



    //2 根据课程id删除章节
    void removeChapterByCourseId(Long courseId);


}
